<template>
	<view class="common-title">
		<image src="@/static/order/return.png" mode="aspectFill" @click="back" style="width: 64rpx;height: 64rpx;">
		</image>
		<view class="name">
			<slot name="name"></slot>
		</view>
	</view>
</template>

<script>
	export default {

		name: "AllHeads",
		props: ['name', 'type'],
		data() {
			return {

			};
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.common-title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		// padding: 0 25rpx;

		.name {
			// font-size: 40rpx
		}

		.title-name {
			font-size: 30rpx;
			margin-right: 45rpx;
			font-weight: 600;
		}

	}
</style>